﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class service_wyzs : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            if (Session["username"] != null && Session["userpwd"] != null)
            {
                string userName = Session["username"].ToString();
                string userpwd = Session["userpwd"].ToString();
                this.hidName.Value = userName;
                this.hidPwd.Value = userpwd;
                this.lblUser.Text = userName;
            }
            else
            {
                Response.Redirect("service_self.aspx");
            }
        }
    }
    /// <summary>
    /// 我要折算
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void imgbtnwyzs_Click(object sender, ImageClickEventArgs e)
    {
        //string userName = zname.Text;
        //string pwd = zpwd.Text;
        //emoneybussiness.emoneybusiness service = new emoneybussiness.emoneybusiness();
        //string code = (string)Session["code"];
        //string c = this.code.Text;
        //if (c.Trim().ToLower() == code.Trim())
        //{
        //if (!service.CheckUserName(userName, pwd))
        //{
        //    ClientScript.RegisterStartupScript(GetType(), "a", "alert('身份验证失败，请重新再试');", true);
        //    return;
        //}
        //string result = service.AveEndDateSHSZ_2(userName, 0);
        //}
        //else
        //{
        //    ClientScript.RegisterStartupScript(GetType(), "a", "alert('验证码输入不正确');", true);
        //}
    }
}